<?php


namespace app\home\controller;

use think\Db;
use think\facade\Config;
use app\common\library\Qiniu;

class About extends Base
{
    protected $beforeActionList = [
        'first',
    ];

    protected function first()
    {
        $this->assign('nav', 'about');
    }

    public function index()
    {
        $info = DB::name('news')->where('id', 8)->find();
        if ($info) {
            $this->assign('info',$info);
            return view();
        } else {
            $this->redirect('home/index/index');
        }
        return view();
    }


}